package com.zhangxun.feign;

import com.zhangxun.domain.Basket;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("cart-service")
public interface OrderCartFeign {

    @PostMapping("/p/shopCart/getByCondition")
    List<Basket> getByCondition(@RequestBody List<Long> basketIdList);

    @PostMapping("/p/shopCart/deleteByIds")
    void deleteByIds(@RequestBody List<Long> basketIds);
}
